package seqlist.stack_queue;

/**
 * @author yuisama
 * @date 2023/03/21 19:16
 **/
public class MyStackTest {
    public static void main(String[] args) {
        MyStack<Integer> stack = new MyStack<>();
        stack.push(1);
        stack.push(3);
        stack.push(5);
        stack.push(7);
        System.out.println(stack);
        // 7
        System.out.println(stack.pop());
        // 5
        System.out.println(stack.peek());
        System.out.println(stack);
    }
}